WPTravelEngine\Core\Cart\Cart B

Total Complexity 97
Dependencies 8
Dependents 14
Total lines 995
Lines of code 385
Logical lines of code 237
Comment lines 424
Methods 54
Properties 17

Methods 54

Method Rating Maintainability Complexity Lines of code
read()
A
48 8 32
add()
S
45 6 42
calculate_discount()
S
53 7 23
calculate_totals()
S
50 6 29
update()
S
55 5 21
write()
S
55 3 19
get_cart_coupon_name()
S
70 3 5
apply_tax()
S
70 3 6
get_cart_coupon_value()
S
70 3 5
get_cart_coupon_type()
S
70 3 5
getItems()
S
79 2 3
get_attribute()
S
71 2 6
get_formated_items()
S
68 2 7
add_fee()
S
69 2 7
get_totals()
S
74 2 4
add_deductible_items()
S
69 2 7
get_total()
S
59 1 13
get_discount_amount()
S
78 1 3
get_subtotal()
S
78 1 3
get_extra_services_totals()
S
67 1 9
apply_discounts()
S
80 1 3
__construct()
S
66 1 8
get_discount_total()
S
78 1 3
get_total_partial()
S
80 1 3
get_due_total()
S
80 1 3
get_cart_total()
S
80 1 3
discount_clear()
S
77 1 4
tax()
S
82 1 3
get_payment_type()
S
82 1 3
get_booking_ref()
S
82 1 3
get_cart_trip_ids()
S
79 1 3
get_attributes()
S
82 1 3
remove()
S
73 1 5
set_payment_gateway()
S
81 1 3
get_additional_line_items()
S
78 1 3
get_fees()
S
68 1 7
add_additional_line_items()
S
80 1 3
get_cart_id()
S
82 1 3
get_cart_key()
S
82 1 3
output()
S
75 1 4
reset_totals()
S
81 1 3
set_payment_type()
S
81 1 3
set_booking_ref()
S
81 1 3
read_cart_onload()
S
82 1 3
update_cart()
S
82 1 3
add_discount_values()
S
68 1 7
has_discounts()
S
80 1 3
get_discounts()
S
82 1 3
cart_empty_message()
S
67 1 8
clear()
S
66 1 9
get_deductible_items()
S
68 1 7
set_attributes()
S
77 1 4
set_attribute()
S
76 1 4
is_loaded_from_booking()
S
80 1 3